﻿<UserControl x:Class="Tisonet.Dobrak.Client.WP8.UserControls.ProgressBarWithMessage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:c="clr-namespace:Tisonet.Dobrak.Client.WP8.Convertors"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}">

    <UserControl.Resources>
        <c:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    </UserControl.Resources>

    <StackPanel x:Name="StackPanel" Visibility="{Binding ShowProgress, Converter={StaticResource BooleanToVisibilityConverter}}" VerticalAlignment="Center" >
        <ProgressBar IsIndeterminate="{Binding ShowProgress}"  Margin="0,5,0,0"  />
        <TextBlock  Text="{Binding Text}"  HorizontalAlignment="Center" />
    </StackPanel>
</UserControl>